package k2_oop.p6_relation.demo08;

public class Teacher {

    private String subject;
    private String level;

    public Teacher(String subject, String level) {
        this.subject = subject;
        this.level = level;
    }

    public void teach(){
        System.out.println("教师讲课");
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }
}
